#include <QCoreApplication>
#include "curltool.h"
using namespace std;
#include <QDebug>
int main(int argc, char *argv[])
{
   QCoreApplication a(argc, argv);
    CurlTool* curl = CurlTool::getInstance();
//    curl.post("http://eplatform.edu-edu.com.cn/live/api/auth/login", "{
//                                                                     \"content\": {
//                                                                         \"password\": \"279fb854eb9fa001b4629518a45c921cfad6d697\",
//                                                                         \"username\": \"luoshun\"
//                                                                     },
//                                                                     \"timestamp\": 0,
//                                                                     \"title\": \"\",
//                                                                     \"uuid\": \"\"
//                                                                 }");
   std::string r1 =  curl->post("http://10.10.1.120:8070/aimbot-api/sys/login", "{\"content\":{\"password\":\"279fb854eb9fa001b4629518a45c921cfad6d697\",\"username\":\"luoshun\"},\"timestamp\":0,\"title\":\"5852222\",\"uuid\":\"135225522\"}");
   qDebug() << "------------------------------------------------";
   qDebug() << "post data" << QString::fromUtf8(r1.data());
   return a.exec();
}


